from manimlib import *
from numpy import square
import numpy as np

class Test(Scene):
    #75cfb8
    #浅绿
    #bbdfc8
    #浅黄
    #f0e5d8
    #深黄
    #ffc478
    def construct(self):
        # self.add(NumberPlane())
        c1=Circle(color=RED,fill_opacity=1).shift(UP*2.1+LEFT*2)
        c2=Circle(color='#ffc478',fill_opacity=1).shift(LEFT*2)
        c3=Circle(color='#75cfb8',fill_opacity=1).shift(DOWN*2.1+LEFT*2)
        self.add(c1,c2,c3)
        t1=Text('13个球不是红色',color=BLACK).next_to(c1)
        t2=Text('5个球不是黄色',color=BLACK).next_to(c2)
        t3=Text('12个球不是绿色',color=BLACK).next_to(c3)
        self.add(t1,t2,t3)
        self.wait(0.03)
        v=VGroup(c1,c2,c3,t1,t2,t3)
        v.shift(LEFT*3)
        self.add(Line(LEFT*7,RIGHT*7,color=BLACK).shift(UP*1.05),Line(LEFT*7,RIGHT*7,color=BLACK).shift(DOWN*1.05),Line(LEFT*7,RIGHT*7,color=BLACK).shift(UP*3.2),Line(LEFT*7,RIGHT*7,color=BLACK).shift(DOWN*3.2))
        self.add(Line(UP*4,DOWN*4,color=BLACK).shift(RIGHT),Line(UP*4,DOWN*4,color=BLACK).shift(3*RIGHT),Line(UP*4,DOWN*4,color=BLACK).shift(5*RIGHT),Line(UP*4,DOWN*4,color=BLACK).shift(7*RIGHT))

        self.add(Text('红球',color=RED).move_to([2,3.6,0]),Text('黄球',color='#ffc478').move_to([4,3.6,0]),Text('绿球',color='#75cfb8').move_to([6,3.6,0]))
        self.add(Tex(r'\checkmark',color=BLACK).move_to([4,2,0]),Tex(r'\checkmark',color=BLACK).move_to([6,2,0]),Tex(r'\checkmark',color=BLACK).move_to([2,0,0]),Tex(r'\checkmark',color=BLACK).move_to([6,0,0]),Tex(r'\checkmark',color=BLACK).move_to([2,-2,0]),Tex(r'\checkmark',color=BLACK).move_to([4,-2,0]))
        self.wait(0.03)